package com.example.renshiguanli.service.impl;

import com.example.renshiguanli.mapper.EmpMapper;
import com.example.renshiguanli.pojo.Emp;
import com.example.renshiguanli.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public List<Emp> getAllEmps() {
        return empMapper.getAllEmps();
    }

    @Override
    public List<Emp> getEmpAndDept() {
        return empMapper.getEmpAndDept();
    }

    @Override
    public List<Emp> findByName(String name) {
        return empMapper.findByName(name);
    }
}
